package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 试岗
 * </p>
 *
 * @author hpiggy
 * @since 2024-12-08
 */
@TableName("adms_try_job")
@ApiModel(value = "TryJob对象", description = "试岗")
@Data
public class TryJob implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Integer yearPart;

    private Integer quarterNum;

    @ApiModelProperty("简历id")
    private Long recruitId;

    @ApiModelProperty("分配校区")
    private Long schoolId;

    @ApiModelProperty("岗位id")
    private Long stationId;

    @ApiModelProperty("科目id")
    private Long subjectsId;

    private Long stationNeedsId;

    @ApiModelProperty("试岗点评id")
    private Long commentId;

    @ApiModelProperty("试岗日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate tryDate;

    @ApiModelProperty("0未点评，1通过，2未通过")
    private Integer passType;

    @ApiModelProperty("是否测评0否，1是")
    private Integer isAppraisal;

    @ApiModelProperty("0已到岗，1未到岗")
    private Integer isArriveJob;

    @ApiModelProperty("未到岗原因")
    private String notArriveReason;

    @ApiModelProperty("未到岗操作时间")
    private LocalDateTime notArriveDate;

    @ApiModelProperty("初中试岗点评分数")
    private Integer score;

    @ApiModelProperty("小学试岗点评分数")
    private Integer smallScore;

    @ApiModelProperty("试讲满意度，0未试讲，1满意，2一般，3差劲")
    private Integer trySatisficing;

    @ApiModelProperty("试岗评语")
    private String tryComment;

    @TableField(exist = false)
    @ApiModelProperty("学校名字")
    private String schoolName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("试岗是否通过时间")
    private LocalDateTime tryAuditDate;

    @TableField(exist = false)
    @ApiModelProperty("名字")
    private String name;

    @TableField(exist = false)
    @ApiModelProperty("排序")
    private Integer sort;

    @TableField(exist = false)
    @ApiModelProperty("岗位")
    private String stationName;

    @TableField(exist = false)
    @ApiModelProperty("试岗点评人")
    private String commentName;

    @TableField(exist = false)
    @ApiModelProperty("邀约人")
    private String invitationName;

    @TableField(exist = false)
    @ApiModelProperty("1为校区招聘岗位，2为部门招聘岗位")
    private Integer departmentType;

    @ApiModelProperty("手机号")
    @TableField(exist = false)
    private String phone;

    @TableField(exist = false)
    @ApiModelProperty("部门名称")
    private String departmentName;

    @TableField(exist = false)
    @ApiModelProperty("部门id")
    private Long departmentId;

    @TableField(exist = false)
    @ApiModelProperty("试岗创建数据最小日期")
    private String minDate;

    @TableField(exist = false)
    @ApiModelProperty("试岗创建数据最大日期")
    private String maxDate;
}
